from plyfile import PlyData,PlyElement
import numpy as np

def read_ply(filename):
    """ read XYZ point cloud from filename PLY file """
    plydata = PlyData.read(filename)
    pc = plydata['vertex'].data
    pc_array = np.array([[x, y, z] for x,y,z in pc])
    return pc_array

if __name__=='__main__':
    # pc=read_ply('/home/wsl/zz/bunny/data/bun000.ply')
    res=np.loadtxt('/home/wsl/zz/replay_93936_2021-9-22.txt',delimiter=',')
    res=res.astype(np.float32)
    np.save('1.npy',res)
    print(res[0:10])